<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactsContent.ascx.cs"
	Inherits="iPhOwa.Web.Controls.ContactsContent" EnableViewState="false" %>
<asp:Panel ID="np" runat="server" Visible="false" Style="text-align: center;" CssClass="itemRow">
	You have no contacts.
</asp:Panel>
<asp:DataList ID="nl" runat="server" EnableViewState="false" Width="100%" CellPadding="0"
	CellSpacing="0">
	<ItemTemplate>
		<div class="itemRow">
			<asp:Image runat="server" ID="ni" CssClass="middle" ImageUrl="~/Images/icon-contact.gif" />
			<asp:Label runat="server" ID="nl" Text='<%# Eval("DisplayName") %>' Visible='<%# !(bool)Eval("IsCompany") %>' />
			<br runat="server" id="cb" visible='<%# !(bool)Eval("IsCompany") && !string.IsNullOrEmpty(Eval("Company").ToString()) %>' />
			<asp:Label runat="server" ID="cl" Text='<%# Eval("Company") %>' Visible='<%# !string.IsNullOrEmpty(Eval("Company").ToString()) %>' />
			<asp:Panel runat="server" ID="mp" Visible='<%# !string.IsNullOrEmpty(Eval("MobilePhone").ToString()) %>'>
				Mobile:
				<%# Eval("MobilePhone") %>
			</asp:Panel>
			<asp:Panel runat="server" ID="wp" Visible='<%# !string.IsNullOrEmpty(Eval("WorkPhone").ToString()) %>'>
				Work:
				<%# Eval("WorkPhone") %>
			</asp:Panel>
			<asp:Panel runat="server" ID="e1" Visible='<%# !string.IsNullOrEmpty(Eval("Email1").ToString()) %>'>
				Email:
				<asp:HyperLink runat="server" ID="e1l" NavigateUrl='<%# string.Concat("~/ComposeMessage.aspx?to=", Eval("Email1")) %>'><%# Eval("Email1") %></asp:HyperLink>
			</asp:Panel>
			<asp:Panel runat="server" ID="e2" Visible='<%# !string.IsNullOrEmpty(Eval("Email2").ToString()) %>'>
				Email 2:
				<asp:HyperLink runat="server" ID="e2l" NavigateUrl='<%# string.Concat("~/ComposeMessage.aspx?to=", Eval("Email1")) %>'><%# Eval("Email2") %></asp:HyperLink>
			</asp:Panel>
			<asp:Panel runat="server" ID="e3" Visible='<%# !string.IsNullOrEmpty(Eval("Email3").ToString()) %>'>
				Email 3:
				<asp:HyperLink runat="server" ID="e3l" NavigateUrl='<%# string.Concat("~/ComposeMessage.aspx?to=", Eval("Email1")) %>'><%# Eval("Email3") %></asp:HyperLink>
			</asp:Panel>
		</div>
	</ItemTemplate>
</asp:DataList>